package com.coder520.dao;

import com.coder520.pojo.Attend;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attend record);

    int insertSelective(Attend record);

    Attend selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attend record);

    int updateByPrimaryKey(Attend record);

    Attend selectByUserId(Long userId);

    List<Attend> selectByDate(@Param("userId") Long userId, @Param("startDate") String startDate, @Param("endDate") String endDate, @Param("attendStatus") Integer attendStatus);

    List<Attend> selectColum();

    int batchInsert(@Param("attendList") List<Attend> attendList);
}